package com.lxz.aimedicalassistantbackend.assistant;

import dev.langchain4j.service.MemoryId;
import dev.langchain4j.service.SystemMessage;
import dev.langchain4j.service.UserMessage;
import dev.langchain4j.service.spring.AiService;
import dev.langchain4j.service.spring.AiServiceWiringMode;

/**
 * @Author: 小新
 * @Date: 2025/4/24 20:56
 * @Description:
 * @Version: v1.0
 */
@AiService(wiringMode = AiServiceWiringMode.EXPLICIT ,chatModel = "qwenChatModel",chatMemory = "chatMemory",chatMemoryProvider = "chatMemoryProvider",tools ="calculatorTools" )
public interface MemoryProviderChatAssistant {
    @SystemMessage(fromResource = "SystemMessage.text")//设置系统消息
    String chat(@MemoryId int memoryId, @UserMessage String userMessage);
}
